package main

import (
	"fmt"
	"os"
)

func main() {
	info, err := os.Stat(os.Args[0])
	if err != nil {
		fmt.Printf("os.State Error: %v\n", err)
	}
	fmt.Println("Name:", info.Name())
	fmt.Println("Size:", info.Size())
	fmt.Println("IsDir:", info.IsDir())
	fmt.Println("Mode:", info.Mode())
	fmt.Println("ModTime:", info.ModTime().Format("(2006-01-02 15:04:05)"))
	// fmt.Println("Sys:", info.Sys())
}

/********************************************************************
Name: file-stat-info
Size: 1302528
IsDir: false
Mode: -rwxr-xr-x
ModTime: (2022-03-25 19:56:10)
********************************************************************/
